package com.sunshinew.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
public class User {
    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    @TableField(value = "user_computer_id")
    private Long userComputerId;

    @TableField(value = "realname")
    private String realname;

    @TableField(value = "access")
    private Integer access;

    @TableField(value = "vip_level")
    private String vipLevel;

    @TableField(value = "balance")
    private Double balance;

    @TableField(value = "login_time")
    private Date loginTime;

    @TableField(value = "logout_time")
    private Date logoutTime;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(value = "username")
    private String username;

    @TableField(value = "password")
    private String password;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_USER_COMPUTER_ID = "user_computer_id";

    public static final String COL_REALNAME = "realname";

    public static final String COL_ACCESS = "access";

    public static final String COL_VIP_LEVEL = "vip_level";

    public static final String COL_BALANCE = "balance";

    public static final String COL_LOGIN_TIME = "login_time";

    public static final String COL_LOGOUT_TIME = "logout_time";

    public static final String COL_LAST_LOGIN_TIME = "last_login_time";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";
}